package com.managermype.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@SuppressWarnings("serial")
@Repository
public class Enterprise implements Serializable{

	private Integer idEnterprise;
	private String name;
	private String ruc;
	private String address;
	private String phone;
	private Date registerDate;

	@Autowired
	private List<User> myUsers;

	@Autowired
	private List<Departament> myDepartaments;

	public Integer getIdEnterprise() {
		return idEnterprise;
	}

	public void setIdEnterprise(Integer idEnterprise) {
		this.idEnterprise = idEnterprise;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRuc() {
		return ruc;
	}

	public void setRuc(String ruc) {
		this.ruc = ruc;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public List<User> getMyUsers() {
		return myUsers;
	}

	public void setMyUsers(List<User> myUsers) {
		this.myUsers = myUsers;
	}

	public List<Departament> getMyDepartaments() {
		return myDepartaments;
	}

	public void setMyDepartaments(List<Departament> myDepartaments) {
		this.myDepartaments = myDepartaments;
	}

	public Date getRegisterDate() {
		return registerDate;
	}

	public void setRegisterDate(Date registerDate) {
		this.registerDate = registerDate;
	}

}
